package org.marlin.http.annotation;

import org.marlin.http.http.HttpReturnType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * init version 1.5.0
 *
 * @author Jack ZG
 * @since 1.0.0
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
public @interface HttpPath {
    String value() default "";

    String method() default "GET";

    HttpReturnType type() default HttpReturnType.JSON;

    Class<?> returnClass() default com.alibaba.fastjson.JSONObject.class;
}
